Alarm |
Do not block in this method. Blocking may cause a connection break or lead to dismissed alarms.
Note that the SDK does not notify alarm-receivers about alarms where the workflow-settings of the alarm-options specify that the alarm is a record-only alarm.
public class MyAlarmReceiver: AlarmReceiver
{
public override void OnAlarm(AlarmData alarmData)
{
Console.WriteLine(String.Format("Alarm '{0}' with state '{1}'", alarmData.DisplayName, alarmData.State));
}
}